package ruleConf;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hxg
 * @version 1.0
 * @date 2021/12/27 16:38
 */
//@Configuration
public class MyRandomRule {
    @Bean
    public IRule randomRule(){
        return new RandomRule();
    }
}
